# Maintainer: Alexey Pavlov <alexpux@gmail.com>

_realname=Test2-Suite
pkgname=perl-${_realname}
pkgver=0.000129
pkgrel=1
pkgdesc="Distribution with a rich set of tools built upon the Test2 framework"
arch=('any')
url="https://metacpan.org/release/Test2-Suite"
groups=('perl-modules')
depends=('perl-Module-Pluggable' 'perl-Importer' 'perl-Scope-Guard' 'perl-Sub-Info'
         'perl-Term-Table' 'perl-Test-Simple>=1.302158')
license=('PerlArtistic')
source=("https://cpan.metacpan.org/authors/id/E/EX/EXODIST/${_realname}-${pkgver}.tar.gz")
sha256sums=('4d423aafed76aada49f4101417f3a7a121c8f7bc0979ee8c884a75da174bb71c')

prepare() {
  cd "${srcdir}/${_realname}-${pkgver}"
}

build() {
  cd "${srcdir}/${_realname}-${pkgver}"
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd "${srcdir}/${_realname}-${pkgver}"
  make install DESTDIR="${pkgdir}"
}
